package com.agy.filemanager.common;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * treeview 展示类
 */
public class TreeVo implements Serializable{

    private String id;

    private String text;

    private String href;

    private List<TreeVo> nodes;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public List<TreeVo> getNodes() {
        return nodes;
    }

    public void setNodes(List<TreeVo> nodes) {
        this.nodes = nodes;
    }

    public void initList() {
        this.nodes = new ArrayList<>();
    }

    public void initList(int size){
        this.nodes = new ArrayList<>(size);
    }
}
